package com.my.chapter11;

import java.util.*;

public class Test {

    public static void main(String[] args) {
        Stack<String> stack = new Stack<String>();
        for(String s:"I am a clever boy".split(" ")){
            stack.push(s);
        }
        while(!stack.isEmpty()){
            System.out.print(stack.pop() + " ");
        }
    }
}
